<script>

//todo 课程情况得去获取各种数据形成图标



</script>

<template>
  <div class="common-layout">
    <el-container>
      <div class="task-echarts" style="width: 100%;height: 100%">
        <el-progress type="dashboard" :percentage="90" style="margin-right: 100px;">
          <template #default="{ percentage }">
            <span class="percentage-value">{{ percentage }}%</span>
            <span class="percentage-label"><strong>考勤率</strong></span>
          </template>
        </el-progress>
        <el-progress type="dashboard" :percentage="70" style="margin-left: 100px" color="#67C23A">
          <template #default="{ percentage }">
            <span class="percentage-value">{{ percentage }}%</span>
            <span class="percentage-label"><strong>任务完成率</strong></span>
          </template>
        </el-progress>
      </div>
    </el-container>
  </div>
</template>

<style lang="less">
.common-layout {
  position: relative;
  .task-echarts {
    margin-top: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    .percentage-value {
      display: block;
      margin-top: 10px;
      font-size: 28px;
    }

    .percentage-label {
      display: block;
      margin-top: 10px;
      font-size: 12px;
    }
  }
}
</style>